package com.mxpio.boot.autoconfigure.security;

import com.mxpio.boot.security.api.SecurityApiConfiguration;
import com.mxpio.framework.common.CommonConstant;
import com.mxpio.framework.common.vo.ModuleVO;
import com.mxpio.framework.security.SecurityConfiguration;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

@Configuration
@ConditionalOnClass(SecurityApiConfiguration.class)
@AutoConfigureAfter(SecurityApiAutoConfiguration.class)
@Import(SecurityConfiguration.class)
@Slf4j
public class SecurityAutoConfiguration {

	public SecurityAutoConfiguration() {
		log.info("[AutoConfiguration==>]:Security Module Loading");
		CommonConstant.addModule(new ModuleVO("Security","权鉴模块"));
	}

}
